import request from '@/api/request'

export default {
	//求购列表
	getRequireList: data => {
		return request({
			data,
			url: '/askbuy/list'
		})
	},

	//求购详情
	getRequireInfo: data => {
		return request({
			data,
			url: '/askbuy/info'
		})
	},

	//发布求购
	publishRequire: data => {
		return request({
			data,
			url: '/askbuy/toAskbuy'
		})
	},

	//我的求购
	myRequire: data => {
		return request({
			data,
			url: '/askbuy/myAskbuyList'
		})
	},

	//求购咨询
	requireConsult: data => {
		return request({
			data,
			url: '/askbuy/consume'
		})
	},




	
	//供应列表
	getSupplyList: data => {
		return request({
			data,
			url: '/supply/list'
		})
	},

	//供应详情
	getSupplyInfo: data => {
		return request({
			data,
			url: '/supply/info'
		})
	},

	//发布供应
	publishSupply: data => {
		return request({
			data,
			url: '/supply/tpSupply'
		})
	},

	//我的供应
	mySupply: data => {
		return request({
			data,
			url: '/supply/mySupplyList'
		})
	},




	
	//集采
	pickup: data => {
		return request({
			data,
			url: '/collective/add'
		})
	},
	
	//寄售
	sale: data => {
		return request({
			data,
			url: '/consign/add'
		})
	},

	//首页集采列表
	pickupList: data => {
		return request({
			data,
			url: '/collective/list'
		})
	},

	//我的集采列表
	myPickup: data => {
		return request({
			data,
			url: '/collective/mylist'
		})
	},
	
	//我的寄售
	mySale: data => {
		return request({
			data,
			url: '/consign/list'
		})
	},

	//寄售商品列表
	saleList: data => {
		return request({
			data,
			url: '/consign/goods_list'
		})
	},

}
